package cutetd.model;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.*;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


import com.google.appengine.api.datastore.Text;

@PersistenceCapable ( identityType = IdentityType.APPLICATION, detachable = "true" )
public class M_Goods implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private String id;
	
	@Persistent
	private String naviKey;
	
	@Persistent
	private String displayName;
	
	@Persistent
	private String shortName;
	
	@Persistent
	private float marketPrice;
	
	@Persistent
	private float price;
	
	@Persistent
	private float salePrice;
	
	@Persistent
	private float costPrice;
	
	@Persistent
	private int stocks;
	
	@Persistent
	private boolean boolShelve;
	
	@Persistent
	private Text content;
	
	@Persistent
	private String photo;
	
	@Persistent
	private int likeNo;
	
	@Persistent
	private String postUserKey;
	
	

	@Persistent
	private String postUserName;
	
	@Persistent
	private Date postDate;
	
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNaviKey() {
		return naviKey;
	}

	public void setNaviKey(String naviKey) {
		this.naviKey = naviKey;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public float getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(float marketPrice) {
		this.marketPrice = marketPrice;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public float getSalePrice() {
		return salePrice;
	}

	public void setSalePrice(float salePrice) {
		this.salePrice = salePrice;
	}

	public float getCostPrice() {
		return costPrice;
	}

	public void setCostPrice(float costPrice) {
		this.costPrice = costPrice;
	}

	public int getStocks() {
		return stocks;
	}

	public void setStocks(int stocks) {
		this.stocks = stocks;
	}

	public boolean isBoolShelve() {
		return boolShelve;
	}

	public void setBoolShelve(boolean boolShelve) {
		this.boolShelve = boolShelve;
	}

	public String getContent() {
		return content.getValue();
	}

	public void setContent(String content) {
		this.content = new Text(content);
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public int getLikeNo() {
		return likeNo;
	}

	public void setLikeNo(int likeNo) {
		this.likeNo = likeNo;
	}

	public Date getPostDate() {
		return postDate;
	}

	public void setPostDate(Date postDate) {
		this.postDate = postDate;
	}
	
	public String getPostUserKey() {
		return postUserKey;
	}

	public void setPostUserKey(String postUserKey) {
		this.postUserKey = postUserKey;
	}

	public String getPostUserName() {
		return postUserName;
	}

	public void setPostUserName(String postUserName) {
		this.postUserName = postUserName;
	}
}
